Database reference guide |
HOME |
Miscellaneous FunctionsThe following are text column functions:
ISNULL FunctionReturns true for Null values or false for non-Null. The parameter is the name of a column of any data type. Return TypeBoolean. Remarks
SyntaxRow(string)Returns the row number from the column given for each value. The string parameter is the name of any column in the database. ReturnsInteger RemarksCan also be called as IURN(<column>). DISTINCT FunctionSyntaxDistinct(string)For each value, this returns its offset into the index unique list. The string parameter is the name of any column in the database. ReturnsInteger Special function for Text columns containing US zip codes/UK post code fields: PAREA FunctionSyntaxParea(string)Returns the Postal Area from a UK-Style postcode. The string parameter is a string constant or the name of a column containing UK postcodes. ReturnsString RemarksThe postal area is the first 2 letters, or the first letter if the 2nd character is a number. ExampleSelect parea([Demo].[Person].[Postcode]) from [Demo].[Person] Returns “CF” for “CF64 1AU” “B” for “B1 8NN” PDIST FunctionPdist(string)Returns the Postal District from a UK-Style postcode. The string parameter is a string constant or the name of a column containing UK postcodes. ReturnsString RemarksThe Postal District is the postcode minus the last three chars, with all spaces removed. ExampleSelect pdist([Demo].[Person].[Postcode]) from [Demo].[Person]Returns “PO1” for “PO1 3AX” Psect(string)Returns the Postal Sector from a UK-Style postcode. The string parameter is a string constant or the name of a column containing UK postcodes. ReturnsString ExampleSelect psect([Demo].[Person].[Postcode]) from [Demo].[Person] Returns “PO13” for “PO1 3AX” SORTFORMAT (<column>) - converts the postcode to Sort Format. |
Online & Instructor-Led Courses | Training Videos | Webinar Recordings | ![]() |
|
![]() |
© Alterian. All Rights Reserved. | Privacy Policy | Legal Notice | ![]() ![]() ![]() |